package com.tianzj.boot.mvc.entity.system;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * 
 * @author tianzhijin
 *
 */
@Entity(name="sys_user")
public class SysUser  implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 设置数据库主键，生成策略
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	
	@Column(name="user_name",nullable = false, unique = true)
	private String userName;
	
	@Column(name="age",nullable = true, unique = false)
	private Integer age;
	
	@Column(name="password",nullable = false, unique = false)
	private String password;
	
	@Column(name="create_date", unique = false)
	private Long createDate;
	
	@Column(name="update_date", unique = false)
	private Long updateDate;
	
	@Column(name="status",nullable = false)
	private Integer status;
	
	@Column(name="user_type", unique = false)
	private Long userType;
	
	@Column(name="parent_id", unique = false)
	private Long parentId;
	
	@Column(name="create_user", unique = false)
    private Long createUser;
	
	@Column(name="update_user", unique = false)
	private Long updateUser;

	@Transient
	private Long startTime;
	@Transient
	private Long endTime;
	
	public Long getStartTime() {
		return startTime;
	}
	public void setStartTime(Long startTime) {
		this.startTime = startTime;
	}
	public Long getEndTime() {
		return endTime;
	}
	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Long getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Long createDate) {
		this.createDate = createDate;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Long getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Long updateDate) {
		this.updateDate = updateDate;
	}
	
	
	
	
}
